﻿/*
 * EmeCoder v1.2.1.168
 * 作者：Administrator/PC4APPLE
 * 时间：2014-03-25 11:03:05
 * 版权：版权所有 (C) Eme Development Team 2014
*/

﻿using System;
using System.ComponentModel;
using HmFramework.Data;
using HmFramework.Data.Configuration;
using HmFramework.Data.DataAccessLayer;

namespace CuteSprite.Eme.Data.CRM
{
	/// <summary>OCS运单数据</summary>
	[Serializable]
	[DataObject]
	[Description("OCS运单数据")]
	[BindIndex("IX_Express_CustomerID", false, "CustomerID")]
	[BindIndex("IX_Express_OrganizeID", false, "OrganizeID")]
	[BindIndex("IX_Express_CWBNo", true, "CWBNo")]
	[BindIndex("IX_Express_CreateUserID", false, "CreateUserID")]
	[BindIndex("PK__ExpressID__A0D83BD9289A321C", true, "ID")]
	[BindRelation("ID", true, "ExpressSend", "ExpressID")]
	[BindRelation("ID", true, "ExpressRecipient", "ExpressID")]
	[BindTable("Express", Description = "OCS运单数据", ConnName = "EmeCRM", DbType = DatabaseType.SqlServer)]
	public abstract partial class Express<TEntity> : IExpress
	{
		#region 属性

		private Int32 _ID;

		/// <summary>主键</summary>
		[DisplayName("主键")]
		[Description("主键")]
		[DataObjectField(true, true, false, 10)]
		[BindColumn(1, "ID", "主键", null, "int", 10, 0, false)]
		public virtual Int32 ID
		{
			get { return _ID; }
			set { if (OnPropertyChanging(__.ID, value)) { _ID = value; OnPropertyChanged(__.ID); } }
		}

		private String _CWBNo;

		/// <summary>运单号</summary>
		[DisplayName("运单号")]
		[Description("运单号")]
		[DataObjectField(false, false, false, 20)]
		[BindColumn(2, "CWBNo", "运单号", null, "nvarchar(20)", 0, 0, true)]
		public virtual String CWBNo
		{
			get { return _CWBNo; }
			set { if (OnPropertyChanging(__.CWBNo, value)) { _CWBNo = value; OnPropertyChanged(__.CWBNo); } }
		}

		private Int32 _OrganizeID;

		/// <summary>所属部门</summary>
		[DisplayName("所属部门")]
		[Description("所属部门")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(3, "OrganizeID", "所属部门", null, "int", 10, 0, false)]
		public virtual Int32 OrganizeID
		{
			get { return _OrganizeID; }
			set { if (OnPropertyChanging(__.OrganizeID, value)) { _OrganizeID = value; OnPropertyChanged(__.OrganizeID); } }
		}

		private Int32 _CustomerID;

		/// <summary>所属客户</summary>
		[DisplayName("所属客户")]
		[Description("所属客户")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(4, "CustomerID", "所属客户", null, "int", 10, 0, false)]
		public virtual Int32 CustomerID
		{
			get { return _CustomerID; }
			set { if (OnPropertyChanging(__.CustomerID, value)) { _CustomerID = value; OnPropertyChanged(__.CustomerID); } }
		}

		private Boolean _IsDomestic;

		/// <summary>是否国内快件</summary>
		[DisplayName("是否国内快件")]
		[Description("是否国内快件")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(5, "IsDomestic", "是否国内快件", null, "bit", 0, 0, false)]
		public virtual Boolean IsDomestic
		{
			get { return _IsDomestic; }
			set { if (OnPropertyChanging(__.IsDomestic, value)) { _IsDomestic = value; OnPropertyChanged(__.IsDomestic); } }
		}

		private String _ExpressType;

		/// <summary>快递方式</summary>
		[DisplayName("快递方式")]
		[Description("快递方式")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(6, "ExpressType", "快递方式", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ExpressType
		{
			get { return _ExpressType; }
			set { if (OnPropertyChanging(__.ExpressType, value)) { _ExpressType = value; OnPropertyChanged(__.ExpressType); } }
		}

		private String _ExpressService;

		/// <summary>快递类型</summary>
		[DisplayName("快递类型")]
		[Description("快递类型")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(7, "ExpressService", "快递类型", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ExpressService
		{
			get { return _ExpressService; }
			set { if (OnPropertyChanging(__.ExpressService, value)) { _ExpressService = value; OnPropertyChanged(__.ExpressService); } }
		}

		private String _AreaCode;

		/// <summary>区域代码</summary>
		[DisplayName("区域代码")]
		[Description("区域代码")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(8, "AreaCode", "区域代码", null, "nvarchar(50)", 0, 0, true)]
		public virtual String AreaCode
		{
			get { return _AreaCode; }
			set { if (OnPropertyChanging(__.AreaCode, value)) { _AreaCode = value; OnPropertyChanged(__.AreaCode); } }
		}

		private String _OriginCode;

		/// <summary>转运代码</summary>
		[DisplayName("转运代码")]
		[Description("转运代码")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(9, "OriginCode", "转运代码", null, "nvarchar(50)", 0, 0, true)]
		public virtual String OriginCode
		{
			get { return _OriginCode; }
			set { if (OnPropertyChanging(__.OriginCode, value)) { _OriginCode = value; OnPropertyChanged(__.OriginCode); } }
		}

		private String _DestinationCode;

		/// <summary>目的地代码</summary>
		[DisplayName("目的地代码")]
		[Description("目的地代码")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(10, "DestinationCode", "目的地代码", null, "nvarchar(50)", 0, 0, true)]
		public virtual String DestinationCode
		{
			get { return _DestinationCode; }
			set { if (OnPropertyChanging(__.DestinationCode, value)) { _DestinationCode = value; OnPropertyChanged(__.DestinationCode); } }
		}

		private Int32 _BusinessType;

		/// <summary>业务类型</summary>
		[DisplayName("业务类型")]
		[Description("业务类型")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(11, "BusinessType", "业务类型", null, "int", 10, 0, false)]
		public virtual Int32 BusinessType
		{
			get { return _BusinessType; }
			set { if (OnPropertyChanging(__.BusinessType, value)) { _BusinessType = value; OnPropertyChanged(__.BusinessType); } }
		}

		private String _ShipperCode;

		/// <summary>寄件代码</summary>
		[DisplayName("寄件代码")]
		[Description("寄件代码")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(12, "ShipperCode", "寄件代码", null, "nvarchar(10)", 0, 0, true)]
		public virtual String ShipperCode
		{
			get { return _ShipperCode; }
			set { if (OnPropertyChanging(__.ShipperCode, value)) { _ShipperCode = value; OnPropertyChanged(__.ShipperCode); } }
		}

		private String _ShipperName;

		/// <summary>寄件公司</summary>
		[DisplayName("寄件公司")]
		[Description("寄件公司")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(13, "ShipperName", "寄件公司", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ShipperName
		{
			get { return _ShipperName; }
			set { if (OnPropertyChanging(__.ShipperName, value)) { _ShipperName = value; OnPropertyChanged(__.ShipperName); } }
		}

		private String _ShipperAddress;

		/// <summary>寄件地址</summary>
		[DisplayName("寄件地址")]
		[Description("寄件地址")]
		[DataObjectField(false, false, true, 400)]
		[BindColumn(14, "ShipperAddress", "寄件地址", null, "nvarchar(400)", 0, 0, true)]
		public virtual String ShipperAddress
		{
			get { return _ShipperAddress; }
			set { if (OnPropertyChanging(__.ShipperAddress, value)) { _ShipperAddress = value; OnPropertyChanged(__.ShipperAddress); } }
		}

		private String _ShipperCity;

		/// <summary>寄件城市</summary>
		[DisplayName("寄件城市")]
		[Description("寄件城市")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(15, "ShipperCity", "寄件城市", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ShipperCity
		{
			get { return _ShipperCity; }
			set { if (OnPropertyChanging(__.ShipperCity, value)) { _ShipperCity = value; OnPropertyChanged(__.ShipperCity); } }
		}

		private String _ShipperPostCode;

		/// <summary>寄件邮编</summary>
		[DisplayName("寄件邮编")]
		[Description("寄件邮编")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(16, "ShipperPostCode", "寄件邮编", null, "nvarchar(10)", 0, 0, true)]
		public virtual String ShipperPostCode
		{
			get { return _ShipperPostCode; }
			set { if (OnPropertyChanging(__.ShipperPostCode, value)) { _ShipperPostCode = value; OnPropertyChanged(__.ShipperPostCode); } }
		}

		private String _ShipperContact;

		/// <summary>寄件联系人</summary>
		[DisplayName("寄件联系人")]
		[Description("寄件联系人")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(17, "ShipperContact", "寄件联系人", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ShipperContact
		{
			get { return _ShipperContact; }
			set { if (OnPropertyChanging(__.ShipperContact, value)) { _ShipperContact = value; OnPropertyChanged(__.ShipperContact); } }
		}

		private String _ShipperTel;

		/// <summary>寄件联系人电话</summary>
		[DisplayName("寄件联系人电话")]
		[Description("寄件联系人电话")]
		[DataObjectField(false, false, true, 20)]
		[BindColumn(18, "ShipperTel", "寄件联系人电话", null, "nvarchar(20)", 0, 0, true)]
		public virtual String ShipperTel
		{
			get { return _ShipperTel; }
			set { if (OnPropertyChanging(__.ShipperTel, value)) { _ShipperTel = value; OnPropertyChanged(__.ShipperTel); } }
		}

		private String _ShipperCountryCode;

		/// <summary>寄件国家代码</summary>
		[DisplayName("寄件国家代码")]
		[Description("寄件国家代码")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(19, "ShipperCountryCode", "寄件国家代码", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ShipperCountryCode
		{
			get { return _ShipperCountryCode; }
			set { if (OnPropertyChanging(__.ShipperCountryCode, value)) { _ShipperCountryCode = value; OnPropertyChanged(__.ShipperCountryCode); } }
		}

		private String _ShipperCountry;

		/// <summary>寄件国家</summary>
		[DisplayName("寄件国家")]
		[Description("寄件国家")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(20, "ShipperCountry", "寄件国家", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ShipperCountry
		{
			get { return _ShipperCountry; }
			set { if (OnPropertyChanging(__.ShipperCountry, value)) { _ShipperCountry = value; OnPropertyChanged(__.ShipperCountry); } }
		}

		private String _ConsigneeCode;

		/// <summary>收件代码</summary>
		[DisplayName("收件代码")]
		[Description("收件代码")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(21, "ConsigneeCode", "收件代码", null, "nvarchar(10)", 0, 0, true)]
		public virtual String ConsigneeCode
		{
			get { return _ConsigneeCode; }
			set { if (OnPropertyChanging(__.ConsigneeCode, value)) { _ConsigneeCode = value; OnPropertyChanged(__.ConsigneeCode); } }
		}

		private String _ConsigneeName;

		/// <summary>收件公司</summary>
		[DisplayName("收件公司")]
		[Description("收件公司")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(22, "ConsigneeName", "收件公司", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ConsigneeName
		{
			get { return _ConsigneeName; }
			set { if (OnPropertyChanging(__.ConsigneeName, value)) { _ConsigneeName = value; OnPropertyChanged(__.ConsigneeName); } }
		}

		private String _ConsigneeAddress;

		/// <summary>收件地址</summary>
		[DisplayName("收件地址")]
		[Description("收件地址")]
		[DataObjectField(false, false, true, 400)]
		[BindColumn(23, "ConsigneeAddress", "收件地址", null, "nvarchar(400)", 0, 0, true)]
		public virtual String ConsigneeAddress
		{
			get { return _ConsigneeAddress; }
			set { if (OnPropertyChanging(__.ConsigneeAddress, value)) { _ConsigneeAddress = value; OnPropertyChanged(__.ConsigneeAddress); } }
		}

		private String _ConsigneeCity;

		/// <summary>收件城市</summary>
		[DisplayName("收件城市")]
		[Description("收件城市")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(24, "ConsigneeCity", "收件城市", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ConsigneeCity
		{
			get { return _ConsigneeCity; }
			set { if (OnPropertyChanging(__.ConsigneeCity, value)) { _ConsigneeCity = value; OnPropertyChanged(__.ConsigneeCity); } }
		}

		private String _ConsigneePostCode;

		/// <summary>收件邮编</summary>
		[DisplayName("收件邮编")]
		[Description("收件邮编")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(25, "ConsigneePostCode", "收件邮编", null, "nvarchar(10)", 0, 0, true)]
		public virtual String ConsigneePostCode
		{
			get { return _ConsigneePostCode; }
			set { if (OnPropertyChanging(__.ConsigneePostCode, value)) { _ConsigneePostCode = value; OnPropertyChanged(__.ConsigneePostCode); } }
		}

		private String _ConsigneeContact;

		/// <summary>收件联系人</summary>
		[DisplayName("收件联系人")]
		[Description("收件联系人")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(26, "ConsigneeContact", "收件联系人", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ConsigneeContact
		{
			get { return _ConsigneeContact; }
			set { if (OnPropertyChanging(__.ConsigneeContact, value)) { _ConsigneeContact = value; OnPropertyChanged(__.ConsigneeContact); } }
		}

		private String _ConsigneeTel;

		/// <summary>收件联系人电话</summary>
		[DisplayName("收件联系人电话")]
		[Description("收件联系人电话")]
		[DataObjectField(false, false, true, 20)]
		[BindColumn(27, "ConsigneeTel", "收件联系人电话", null, "nvarchar(20)", 0, 0, true)]
		public virtual String ConsigneeTel
		{
			get { return _ConsigneeTel; }
			set { if (OnPropertyChanging(__.ConsigneeTel, value)) { _ConsigneeTel = value; OnPropertyChanged(__.ConsigneeTel); } }
		}

		private String _ConsigneeCountryCode;

		/// <summary>收件国家代码</summary>
		[DisplayName("收件国家代码")]
		[Description("收件国家代码")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(28, "ConsigneeCountryCode", "收件国家代码", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ConsigneeCountryCode
		{
			get { return _ConsigneeCountryCode; }
			set { if (OnPropertyChanging(__.ConsigneeCountryCode, value)) { _ConsigneeCountryCode = value; OnPropertyChanged(__.ConsigneeCountryCode); } }
		}

		private String _ConsigneeCountry;

		/// <summary>收件国家</summary>
		[DisplayName("收件国家")]
		[Description("收件国家")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(29, "ConsigneeCountry", "收件国家", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ConsigneeCountry
		{
			get { return _ConsigneeCountry; }
			set { if (OnPropertyChanging(__.ConsigneeCountry, value)) { _ConsigneeCountry = value; OnPropertyChanged(__.ConsigneeCountry); } }
		}

		private String _ShipmentType;

		/// <summary>运输方式</summary>
		[DisplayName("运输方式")]
		[Description("运输方式")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(30, "ShipmentType", "运输方式", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ShipmentType
		{
			get { return _ShipmentType; }
			set { if (OnPropertyChanging(__.ShipmentType, value)) { _ShipmentType = value; OnPropertyChanged(__.ShipmentType); } }
		}

		private DateTime _ExpressDate;

		/// <summary>收件日期</summary>
		[DisplayName("收件日期")]
		[Description("收件日期")]
		[DataObjectField(false, false, true, 3)]
		[BindColumn(31, "ExpressDate", "收件日期", null, "datetime", 3, 0, false)]
		public virtual DateTime ExpressDate
		{
			get { return _ExpressDate; }
			set { if (OnPropertyChanging(__.ExpressDate, value)) { _ExpressDate = value; OnPropertyChanged(__.ExpressDate); } }
		}

		private String _Description;

		/// <summary>英文描述</summary>
		[DisplayName("英文描述")]
		[Description("英文描述")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(32, "Description", "英文描述", null, "nvarchar(200)", 0, 0, true)]
		public virtual String Description
		{
			get { return _Description; }
			set { if (OnPropertyChanging(__.Description, value)) { _Description = value; OnPropertyChanged(__.Description); } }
		}

		private String _DescriptionCN;

		/// <summary>中文描述</summary>
		[DisplayName("中文描述")]
		[Description("中文描述")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(33, "DescriptionCN", "中文描述", null, "nvarchar(200)", 0, 0, true)]
		public virtual String DescriptionCN
		{
			get { return _DescriptionCN; }
			set { if (OnPropertyChanging(__.DescriptionCN, value)) { _DescriptionCN = value; OnPropertyChanged(__.DescriptionCN); } }
		}

		private Int32 _AmountOfPieces;

		/// <summary>货物件数</summary>
		[DisplayName("货物件数")]
		[Description("货物件数")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(34, "AmountOfPieces", "货物件数", null, "int", 10, 0, false)]
		public virtual Int32 AmountOfPieces
		{
			get { return _AmountOfPieces; }
			set { if (OnPropertyChanging(__.AmountOfPieces, value)) { _AmountOfPieces = value; OnPropertyChanged(__.AmountOfPieces); } }
		}

		private Decimal _ActualWeight;

		/// <summary>实际重量</summary>
		[DisplayName("实际重量")]
		[Description("实际重量")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(35, "ActualWeight", "实际重量", null, "decimal", 18, 3, false)]
		public virtual Decimal ActualWeight
		{
			get { return _ActualWeight; }
			set { if (OnPropertyChanging(__.ActualWeight, value)) { _ActualWeight = value; OnPropertyChanged(__.ActualWeight); } }
		}

		private String _Dimenstion;

		/// <summary>货物尺寸</summary>
		[DisplayName("货物尺寸")]
		[Description("货物尺寸")]
		[DataObjectField(false, false, true, 400)]
		[BindColumn(36, "Dimenstion", "货物尺寸", null, "nvarchar(400)", 0, 0, true)]
		public virtual String Dimenstion
		{
			get { return _Dimenstion; }
			set { if (OnPropertyChanging(__.Dimenstion, value)) { _Dimenstion = value; OnPropertyChanged(__.Dimenstion); } }
		}

		private Decimal _ChargeableWeight;

		/// <summary>体积材重</summary>
		[DisplayName("体积材重")]
		[Description("体积材重")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(37, "ChargeableWeight", "体积材重", null, "decimal", 18, 3, false)]
		public virtual Decimal ChargeableWeight
		{
			get { return _ChargeableWeight; }
			set { if (OnPropertyChanging(__.ChargeableWeight, value)) { _ChargeableWeight = value; OnPropertyChanged(__.ChargeableWeight); } }
		}

		private Boolean _IsChargeableWeight;

		/// <summary>是否体积重量</summary>
		[DisplayName("是否体积重量")]
		[Description("是否体积重量")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(38, "IsChargeableWeight", "是否体积重量", null, "bit", 0, 0, false)]
		public virtual Boolean IsChargeableWeight
		{
			get { return _IsChargeableWeight; }
			set { if (OnPropertyChanging(__.IsChargeableWeight, value)) { _IsChargeableWeight = value; OnPropertyChanged(__.IsChargeableWeight); } }
		}

		private String _CurrencyCode;

		/// <summary>货币代码</summary>
		[DisplayName("货币代码")]
		[Description("货币代码")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(39, "CurrencyCode", "货币代码", null, "nvarchar(50)", 0, 0, true)]
		public virtual String CurrencyCode
		{
			get { return _CurrencyCode; }
			set { if (OnPropertyChanging(__.CurrencyCode, value)) { _CurrencyCode = value; OnPropertyChanged(__.CurrencyCode); } }
		}

		private Decimal _DeclaredValue;

		/// <summary>申报价值</summary>
		[DisplayName("申报价值")]
		[Description("申报价值")]
		[DataObjectField(false, false, true, 19)]
		[BindColumn(40, "DeclaredValue", "申报价值", null, "money", 19, 4, false)]
		public virtual Decimal DeclaredValue
		{
			get { return _DeclaredValue; }
			set { if (OnPropertyChanging(__.DeclaredValue, value)) { _DeclaredValue = value; OnPropertyChanged(__.DeclaredValue); } }
		}

		private String _PayType;

		/// <summary>支付方式</summary>
		[DisplayName("支付方式")]
		[Description("支付方式")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(41, "PayType", "支付方式", null, "nvarchar(50)", 0, 0, true)]
		public virtual String PayType
		{
			get { return _PayType; }
			set { if (OnPropertyChanging(__.PayType, value)) { _PayType = value; OnPropertyChanged(__.PayType); } }
		}

		private Decimal _CollectAmount;

		/// <summary>到付金额</summary>
		[DisplayName("到付金额")]
		[Description("到付金额")]
		[DataObjectField(false, false, true, 19)]
		[BindColumn(42, "CollectAmount", "到付金额", null, "money", 19, 4, false)]
		public virtual Decimal CollectAmount
		{
			get { return _CollectAmount; }
			set { if (OnPropertyChanging(__.CollectAmount, value)) { _CollectAmount = value; OnPropertyChanged(__.CollectAmount); } }
		}

		private Boolean _IsInsurance;

		/// <summary>是否保险</summary>
		[DisplayName("是否保险")]
		[Description("是否保险")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(43, "IsInsurance", "是否保险", null, "bit", 0, 0, false)]
		public virtual Boolean IsInsurance
		{
			get { return _IsInsurance; }
			set { if (OnPropertyChanging(__.IsInsurance, value)) { _IsInsurance = value; OnPropertyChanged(__.IsInsurance); } }
		}

		private String _InsuranceRemark;

		/// <summary>保险备注</summary>
		[DisplayName("保险备注")]
		[Description("保险备注")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(44, "InsuranceRemark", "保险备注", null, "nvarchar(50)", 0, 0, true)]
		public virtual String InsuranceRemark
		{
			get { return _InsuranceRemark; }
			set { if (OnPropertyChanging(__.InsuranceRemark, value)) { _InsuranceRemark = value; OnPropertyChanged(__.InsuranceRemark); } }
		}

		private Decimal _InsurancePrice;

		/// <summary>保价</summary>
		[DisplayName("保价")]
		[Description("保价")]
		[DataObjectField(false, false, true, 19)]
		[BindColumn(45, "InsurancePrice", "保价", null, "money", 19, 4, false)]
		public virtual Decimal InsurancePrice
		{
			get { return _InsurancePrice; }
			set { if (OnPropertyChanging(__.InsurancePrice, value)) { _InsurancePrice = value; OnPropertyChanged(__.InsurancePrice); } }
		}

		private Boolean _IsDifferenceWeight;

		/// <summary>重量差异件</summary>
		[DisplayName("重量差异件")]
		[Description("重量差异件")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(46, "IsDifferenceWeight", "重量差异件", null, "bit", 0, 0, false)]
		public virtual Boolean IsDifferenceWeight
		{
			get { return _IsDifferenceWeight; }
			set { if (OnPropertyChanging(__.IsDifferenceWeight, value)) { _IsDifferenceWeight = value; OnPropertyChanged(__.IsDifferenceWeight); } }
		}

		private Decimal _SettleWeight;

		/// <summary>OCS结算实重</summary>
		[DisplayName("OCS结算实重")]
		[Description("OCS结算实重")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(47, "SettleWeight", "OCS结算实重", null, "decimal", 18, 3, false)]
		public virtual Decimal SettleWeight
		{
			get { return _SettleWeight; }
			set { if (OnPropertyChanging(__.SettleWeight, value)) { _SettleWeight = value; OnPropertyChanged(__.SettleWeight); } }
		}

		private String _SettleDimenstion;

		/// <summary>OCS结算尺寸</summary>
		[DisplayName("OCS结算尺寸")]
		[Description("OCS结算尺寸")]
		[DataObjectField(false, false, true, 400)]
		[BindColumn(48, "SettleDimenstion", "OCS结算尺寸", null, "nvarchar(400)", 0, 0, true)]
		public virtual String SettleDimenstion
		{
			get { return _SettleDimenstion; }
			set { if (OnPropertyChanging(__.SettleDimenstion, value)) { _SettleDimenstion = value; OnPropertyChanged(__.SettleDimenstion); } }
		}

		private Int32 _SettleFactor;

		/// <summary>OCS结算除数</summary>
		[DisplayName("OCS结算除数")]
		[Description("OCS结算除数")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(49, "SettleFactor", "OCS结算除数", null, "int", 10, 0, false)]
		public virtual Int32 SettleFactor
		{
			get { return _SettleFactor; }
			set { if (OnPropertyChanging(__.SettleFactor, value)) { _SettleFactor = value; OnPropertyChanged(__.SettleFactor); } }
		}

		private Decimal _SettleVolWeight;

		/// <summary>OCS结算材重</summary>
		[DisplayName("OCS结算材重")]
		[Description("OCS结算材重")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(50, "SettleVolWeight", "OCS结算材重", null, "decimal", 18, 3, false)]
		public virtual Decimal SettleVolWeight
		{
			get { return _SettleVolWeight; }
			set { if (OnPropertyChanging(__.SettleVolWeight, value)) { _SettleVolWeight = value; OnPropertyChanged(__.SettleVolWeight); } }
		}

		private Decimal _ReceWeight;

		/// <summary>应对客户实重</summary>
		[DisplayName("应对客户实重")]
		[Description("应对客户实重")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(51, "ReceWeight", "应对客户实重", null, "decimal", 18, 3, false)]
		public virtual Decimal ReceWeight
		{
			get { return _ReceWeight; }
			set { if (OnPropertyChanging(__.ReceWeight, value)) { _ReceWeight = value; OnPropertyChanged(__.ReceWeight); } }
		}

		private String _ReceDimenstion;

		/// <summary>应对客户尺寸</summary>
		[DisplayName("应对客户尺寸")]
		[Description("应对客户尺寸")]
		[DataObjectField(false, false, true, 400)]
		[BindColumn(52, "ReceDimenstion", "应对客户尺寸", null, "nvarchar(400)", 0, 0, true)]
		public virtual String ReceDimenstion
		{
			get { return _ReceDimenstion; }
			set { if (OnPropertyChanging(__.ReceDimenstion, value)) { _ReceDimenstion = value; OnPropertyChanged(__.ReceDimenstion); } }
		}

		private Int32 _ReceFactor;

		/// <summary>应对客户除数</summary>
		[DisplayName("应对客户除数")]
		[Description("应对客户除数")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(53, "ReceFactor", "应对客户除数", null, "int", 10, 0, false)]
		public virtual Int32 ReceFactor
		{
			get { return _ReceFactor; }
			set { if (OnPropertyChanging(__.ReceFactor, value)) { _ReceFactor = value; OnPropertyChanged(__.ReceFactor); } }
		}

		private Decimal _ReceVolWeight;

		/// <summary>应对客户材重</summary>
		[DisplayName("应对客户材重")]
		[Description("应对客户材重")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(54, "ReceVolWeight", "应对客户材重", null, "decimal", 18, 3, false)]
		public virtual Decimal ReceVolWeight
		{
			get { return _ReceVolWeight; }
			set { if (OnPropertyChanging(__.ReceVolWeight, value)) { _ReceVolWeight = value; OnPropertyChanged(__.ReceVolWeight); } }
		}

		private Decimal _ProfitWeight;

		/// <summary>部门上交实重</summary>
		[DisplayName("部门上交实重")]
		[Description("部门上交实重")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(55, "ProfitWeight", "部门上交实重", null, "decimal", 18, 3, false)]
		public virtual Decimal ProfitWeight
		{
			get { return _ProfitWeight; }
			set { if (OnPropertyChanging(__.ProfitWeight, value)) { _ProfitWeight = value; OnPropertyChanged(__.ProfitWeight); } }
		}

		private String _ProfitDimenstion;

		/// <summary>部门上交尺寸</summary>
		[DisplayName("部门上交尺寸")]
		[Description("部门上交尺寸")]
		[DataObjectField(false, false, true, 400)]
		[BindColumn(56, "ProfitDimenstion", "部门上交尺寸", null, "nvarchar(400)", 0, 0, true)]
		public virtual String ProfitDimenstion
		{
			get { return _ProfitDimenstion; }
			set { if (OnPropertyChanging(__.ProfitDimenstion, value)) { _ProfitDimenstion = value; OnPropertyChanged(__.ProfitDimenstion); } }
		}

		private Int32 _ProfitFactor;

		/// <summary>部门上交除数</summary>
		[DisplayName("部门上交除数")]
		[Description("部门上交除数")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(57, "ProfitFactor", "部门上交除数", null, "int", 10, 0, false)]
		public virtual Int32 ProfitFactor
		{
			get { return _ProfitFactor; }
			set { if (OnPropertyChanging(__.ProfitFactor, value)) { _ProfitFactor = value; OnPropertyChanged(__.ProfitFactor); } }
		}

		private Decimal _ProfitVolWeight;

		/// <summary>部门上交材重</summary>
		[DisplayName("部门上交材重")]
		[Description("部门上交材重")]
		[DataObjectField(false, false, true, 18)]
		[BindColumn(58, "ProfitVolWeight", "部门上交材重", null, "decimal", 18, 3, false)]
		public virtual Decimal ProfitVolWeight
		{
			get { return _ProfitVolWeight; }
			set { if (OnPropertyChanging(__.ProfitVolWeight, value)) { _ProfitVolWeight = value; OnPropertyChanged(__.ProfitVolWeight); } }
		}

		private Boolean _IsDelay;

		/// <summary>后补单</summary>
		[DisplayName("后补单")]
		[Description("后补单")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(59, "IsDelay", "后补单", null, "bit", 0, 0, false)]
		public virtual Boolean IsDelay
		{
			get { return _IsDelay; }
			set { if (OnPropertyChanging(__.IsDelay, value)) { _IsDelay = value; OnPropertyChanged(__.IsDelay); } }
		}

		private String _BusinessDescription;

		/// <summary>业务备注</summary>
		[DisplayName("业务备注")]
		[Description("业务备注")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(60, "BusinessDescription", "业务备注", null, "nvarchar(200)", 0, 0, true)]
		public virtual String BusinessDescription
		{
			get { return _BusinessDescription; }
			set { if (OnPropertyChanging(__.BusinessDescription, value)) { _BusinessDescription = value; OnPropertyChanged(__.BusinessDescription); } }
		}

		private Boolean _IsForecast;

		/// <summary>部门预报单</summary>
		[DisplayName("部门预报单")]
		[Description("部门预报单")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(61, "IsForecast", "部门预报单", null, "bit", 0, 0, false)]
		public virtual Boolean IsForecast
		{
			get { return _IsForecast; }
			set { if (OnPropertyChanging(__.IsForecast, value)) { _IsForecast = value; OnPropertyChanged(__.IsForecast); } }
		}

		private Boolean _IsDelete;

		/// <summary>逻辑删除</summary>
		[DisplayName("逻辑删除")]
		[Description("逻辑删除")]
		[DataObjectField(false, false, false, 1)]
		[BindColumn(62, "IsDelete", "逻辑删除", null, "bit", 0, 0, false)]
		public virtual Boolean IsDelete
		{
			get { return _IsDelete; }
			set { if (OnPropertyChanging(__.IsDelete, value)) { _IsDelete = value; OnPropertyChanged(__.IsDelete); } }
		}

		private DateTime _ModifiedOn;

		/// <summary>修改时间</summary>
		[DisplayName("修改时间")]
		[Description("修改时间")]
		[DataObjectField(false, false, false, 3)]
		[BindColumn(63, "ModifiedOn", "修改时间", null, "datetime", 3, 0, false)]
		public virtual DateTime ModifiedOn
		{
			get { return _ModifiedOn; }
			set { if (OnPropertyChanging(__.ModifiedOn, value)) { _ModifiedOn = value; OnPropertyChanged(__.ModifiedOn); } }
		}

		private Int32 _ModifiedUserID;

		/// <summary>修改用户ID</summary>
		[DisplayName("修改用户ID")]
		[Description("修改用户ID")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(64, "ModifiedUserID", "修改用户ID", null, "int", 10, 0, false)]
		public virtual Int32 ModifiedUserID
		{
			get { return _ModifiedUserID; }
			set { if (OnPropertyChanging(__.ModifiedUserID, value)) { _ModifiedUserID = value; OnPropertyChanged(__.ModifiedUserID); } }
		}

		private String _ModifiedBy;

		/// <summary>修改用户</summary>
		[DisplayName("修改用户")]
		[Description("修改用户")]
		[DataObjectField(false, false, false, 50)]
		[BindColumn(65, "ModifiedBy", "修改用户", null, "nvarchar(50)", 0, 0, true)]
		public virtual String ModifiedBy
		{
			get { return _ModifiedBy; }
			set { if (OnPropertyChanging(__.ModifiedBy, value)) { _ModifiedBy = value; OnPropertyChanged(__.ModifiedBy); } }
		}

		private DateTime _CreateOn;

		/// <summary>创建时间</summary>
		[DisplayName("创建时间")]
		[Description("创建时间")]
		[DataObjectField(false, false, false, 3)]
		[BindColumn(66, "CreateOn", "创建时间", null, "datetime", 3, 0, false)]
		public virtual DateTime CreateOn
		{
			get { return _CreateOn; }
			set { if (OnPropertyChanging(__.CreateOn, value)) { _CreateOn = value; OnPropertyChanged(__.CreateOn); } }
		}

		private Int32 _CreateUserID;

		/// <summary>创建用户ID</summary>
		[DisplayName("创建用户ID")]
		[Description("创建用户ID")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(67, "CreateUserID", "创建用户ID", null, "int", 10, 0, false)]
		public virtual Int32 CreateUserID
		{
			get { return _CreateUserID; }
			set { if (OnPropertyChanging(__.CreateUserID, value)) { _CreateUserID = value; OnPropertyChanged(__.CreateUserID); } }
		}

		private String _CreateBy;

		/// <summary>创建用户</summary>
		[DisplayName("创建用户")]
		[Description("创建用户")]
		[DataObjectField(false, false, false, 50)]
		[BindColumn(68, "CreateBy", "创建用户", null, "nvarchar(50)", 0, 0, true)]
		public virtual String CreateBy
		{
			get { return _CreateBy; }
			set { if (OnPropertyChanging(__.CreateBy, value)) { _CreateBy = value; OnPropertyChanged(__.CreateBy); } }
		}

		#endregion

		#region 获取/设置 字段值

		/// <summary>
		/// 获取/设置 字段值。
		/// 一个索引，基类使用反射实现。
		/// 派生实体类可重写该索引，以避免反射带来的性能损耗
		/// </summary>
		/// <param name="name">字段名</param>
		/// <returns></returns>
		public override Object this[String name]
		{
			get
			{
				switch (name)
				{
					case __.ID: return _ID;
					case __.CWBNo: return _CWBNo;
					case __.OrganizeID: return _OrganizeID;
					case __.CustomerID: return _CustomerID;
					case __.IsDomestic: return _IsDomestic;
					case __.ExpressType: return _ExpressType;
					case __.ExpressService: return _ExpressService;
					case __.AreaCode: return _AreaCode;
					case __.OriginCode: return _OriginCode;
					case __.DestinationCode: return _DestinationCode;
					case __.BusinessType: return _BusinessType;
					case __.ShipperCode: return _ShipperCode;
					case __.ShipperName: return _ShipperName;
					case __.ShipperAddress: return _ShipperAddress;
					case __.ShipperCity: return _ShipperCity;
					case __.ShipperPostCode: return _ShipperPostCode;
					case __.ShipperContact: return _ShipperContact;
					case __.ShipperTel: return _ShipperTel;
					case __.ShipperCountryCode: return _ShipperCountryCode;
					case __.ShipperCountry: return _ShipperCountry;
					case __.ConsigneeCode: return _ConsigneeCode;
					case __.ConsigneeName: return _ConsigneeName;
					case __.ConsigneeAddress: return _ConsigneeAddress;
					case __.ConsigneeCity: return _ConsigneeCity;
					case __.ConsigneePostCode: return _ConsigneePostCode;
					case __.ConsigneeContact: return _ConsigneeContact;
					case __.ConsigneeTel: return _ConsigneeTel;
					case __.ConsigneeCountryCode: return _ConsigneeCountryCode;
					case __.ConsigneeCountry: return _ConsigneeCountry;
					case __.ShipmentType: return _ShipmentType;
					case __.ExpressDate: return _ExpressDate;
					case __.Description: return _Description;
					case __.DescriptionCN: return _DescriptionCN;
					case __.AmountOfPieces: return _AmountOfPieces;
					case __.ActualWeight: return _ActualWeight;
					case __.Dimenstion: return _Dimenstion;
					case __.ChargeableWeight: return _ChargeableWeight;
					case __.IsChargeableWeight: return _IsChargeableWeight;
					case __.CurrencyCode: return _CurrencyCode;
					case __.DeclaredValue: return _DeclaredValue;
					case __.PayType: return _PayType;
					case __.CollectAmount: return _CollectAmount;
					case __.IsInsurance: return _IsInsurance;
					case __.InsuranceRemark: return _InsuranceRemark;
					case __.InsurancePrice: return _InsurancePrice;
					case __.IsDifferenceWeight: return _IsDifferenceWeight;
					case __.SettleWeight: return _SettleWeight;
					case __.SettleDimenstion: return _SettleDimenstion;
					case __.SettleFactor: return _SettleFactor;
					case __.SettleVolWeight: return _SettleVolWeight;
					case __.ReceWeight: return _ReceWeight;
					case __.ReceDimenstion: return _ReceDimenstion;
					case __.ReceFactor: return _ReceFactor;
					case __.ReceVolWeight: return _ReceVolWeight;
					case __.ProfitWeight: return _ProfitWeight;
					case __.ProfitDimenstion: return _ProfitDimenstion;
					case __.ProfitFactor: return _ProfitFactor;
					case __.ProfitVolWeight: return _ProfitVolWeight;
					case __.IsDelay: return _IsDelay;
					case __.BusinessDescription: return _BusinessDescription;
					case __.IsForecast: return _IsForecast;
					case __.IsDelete: return _IsDelete;
					case __.ModifiedOn: return _ModifiedOn;
					case __.ModifiedUserID: return _ModifiedUserID;
					case __.ModifiedBy: return _ModifiedBy;
					case __.CreateOn: return _CreateOn;
					case __.CreateUserID: return _CreateUserID;
					case __.CreateBy: return _CreateBy;
					default: return base[name];
				}
			}
			set
			{
				switch (name)
				{
					case __.ID: _ID = Convert.ToInt32(value); break;
					case __.CWBNo: _CWBNo = Convert.ToString(value); break;
					case __.OrganizeID: _OrganizeID = Convert.ToInt32(value); break;
					case __.CustomerID: _CustomerID = Convert.ToInt32(value); break;
					case __.IsDomestic: _IsDomestic = Convert.ToBoolean(value); break;
					case __.ExpressType: _ExpressType = Convert.ToString(value); break;
					case __.ExpressService: _ExpressService = Convert.ToString(value); break;
					case __.AreaCode: _AreaCode = Convert.ToString(value); break;
					case __.OriginCode: _OriginCode = Convert.ToString(value); break;
					case __.DestinationCode: _DestinationCode = Convert.ToString(value); break;
					case __.BusinessType: _BusinessType = Convert.ToInt32(value); break;
					case __.ShipperCode: _ShipperCode = Convert.ToString(value); break;
					case __.ShipperName: _ShipperName = Convert.ToString(value); break;
					case __.ShipperAddress: _ShipperAddress = Convert.ToString(value); break;
					case __.ShipperCity: _ShipperCity = Convert.ToString(value); break;
					case __.ShipperPostCode: _ShipperPostCode = Convert.ToString(value); break;
					case __.ShipperContact: _ShipperContact = Convert.ToString(value); break;
					case __.ShipperTel: _ShipperTel = Convert.ToString(value); break;
					case __.ShipperCountryCode: _ShipperCountryCode = Convert.ToString(value); break;
					case __.ShipperCountry: _ShipperCountry = Convert.ToString(value); break;
					case __.ConsigneeCode: _ConsigneeCode = Convert.ToString(value); break;
					case __.ConsigneeName: _ConsigneeName = Convert.ToString(value); break;
					case __.ConsigneeAddress: _ConsigneeAddress = Convert.ToString(value); break;
					case __.ConsigneeCity: _ConsigneeCity = Convert.ToString(value); break;
					case __.ConsigneePostCode: _ConsigneePostCode = Convert.ToString(value); break;
					case __.ConsigneeContact: _ConsigneeContact = Convert.ToString(value); break;
					case __.ConsigneeTel: _ConsigneeTel = Convert.ToString(value); break;
					case __.ConsigneeCountryCode: _ConsigneeCountryCode = Convert.ToString(value); break;
					case __.ConsigneeCountry: _ConsigneeCountry = Convert.ToString(value); break;
					case __.ShipmentType: _ShipmentType = Convert.ToString(value); break;
					case __.ExpressDate: _ExpressDate = Convert.ToDateTime(value); break;
					case __.Description: _Description = Convert.ToString(value); break;
					case __.DescriptionCN: _DescriptionCN = Convert.ToString(value); break;
					case __.AmountOfPieces: _AmountOfPieces = Convert.ToInt32(value); break;
					case __.ActualWeight: _ActualWeight = Convert.ToDecimal(value); break;
					case __.Dimenstion: _Dimenstion = Convert.ToString(value); break;
					case __.ChargeableWeight: _ChargeableWeight = Convert.ToDecimal(value); break;
					case __.IsChargeableWeight: _IsChargeableWeight = Convert.ToBoolean(value); break;
					case __.CurrencyCode: _CurrencyCode = Convert.ToString(value); break;
					case __.DeclaredValue: _DeclaredValue = Convert.ToDecimal(value); break;
					case __.PayType: _PayType = Convert.ToString(value); break;
					case __.CollectAmount: _CollectAmount = Convert.ToDecimal(value); break;
					case __.IsInsurance: _IsInsurance = Convert.ToBoolean(value); break;
					case __.InsuranceRemark: _InsuranceRemark = Convert.ToString(value); break;
					case __.InsurancePrice: _InsurancePrice = Convert.ToDecimal(value); break;
					case __.IsDifferenceWeight: _IsDifferenceWeight = Convert.ToBoolean(value); break;
					case __.SettleWeight: _SettleWeight = Convert.ToDecimal(value); break;
					case __.SettleDimenstion: _SettleDimenstion = Convert.ToString(value); break;
					case __.SettleFactor: _SettleFactor = Convert.ToInt32(value); break;
					case __.SettleVolWeight: _SettleVolWeight = Convert.ToDecimal(value); break;
					case __.ReceWeight: _ReceWeight = Convert.ToDecimal(value); break;
					case __.ReceDimenstion: _ReceDimenstion = Convert.ToString(value); break;
					case __.ReceFactor: _ReceFactor = Convert.ToInt32(value); break;
					case __.ReceVolWeight: _ReceVolWeight = Convert.ToDecimal(value); break;
					case __.ProfitWeight: _ProfitWeight = Convert.ToDecimal(value); break;
					case __.ProfitDimenstion: _ProfitDimenstion = Convert.ToString(value); break;
					case __.ProfitFactor: _ProfitFactor = Convert.ToInt32(value); break;
					case __.ProfitVolWeight: _ProfitVolWeight = Convert.ToDecimal(value); break;
					case __.IsDelay: _IsDelay = Convert.ToBoolean(value); break;
					case __.BusinessDescription: _BusinessDescription = Convert.ToString(value); break;
					case __.IsForecast: _IsForecast = Convert.ToBoolean(value); break;
					case __.IsDelete: _IsDelete = Convert.ToBoolean(value); break;
					case __.ModifiedOn: _ModifiedOn = Convert.ToDateTime(value); break;
					case __.ModifiedUserID: _ModifiedUserID = Convert.ToInt32(value); break;
					case __.ModifiedBy: _ModifiedBy = Convert.ToString(value); break;
					case __.CreateOn: _CreateOn = Convert.ToDateTime(value); break;
					case __.CreateUserID: _CreateUserID = Convert.ToInt32(value); break;
					case __.CreateBy: _CreateBy = Convert.ToString(value); break;
					default: base[name] = value; break;
				}
			}
		}

		#endregion

		#region 字段名

		/// <summary>取得OCS运单数据字段信息的快捷方式</summary>
		public partial class _
		{
			///<summary>主键</summary>
			public static readonly Field ID = FindByName(__.ID);

			///<summary>运单号</summary>
			public static readonly Field CWBNo = FindByName(__.CWBNo);

			///<summary>所属部门</summary>
			public static readonly Field OrganizeID = FindByName(__.OrganizeID);

			///<summary>所属客户</summary>
			public static readonly Field CustomerID = FindByName(__.CustomerID);

			///<summary>是否国内快件</summary>
			public static readonly Field IsDomestic = FindByName(__.IsDomestic);

			///<summary>快递方式</summary>
			public static readonly Field ExpressType = FindByName(__.ExpressType);

			///<summary>快递类型</summary>
			public static readonly Field ExpressService = FindByName(__.ExpressService);

			///<summary>区域代码</summary>
			public static readonly Field AreaCode = FindByName(__.AreaCode);

			///<summary>转运代码</summary>
			public static readonly Field OriginCode = FindByName(__.OriginCode);

			///<summary>目的地代码</summary>
			public static readonly Field DestinationCode = FindByName(__.DestinationCode);

			///<summary>业务类型</summary>
			public static readonly Field BusinessType = FindByName(__.BusinessType);

			///<summary>寄件代码</summary>
			public static readonly Field ShipperCode = FindByName(__.ShipperCode);

			///<summary>寄件公司</summary>
			public static readonly Field ShipperName = FindByName(__.ShipperName);

			///<summary>寄件地址</summary>
			public static readonly Field ShipperAddress = FindByName(__.ShipperAddress);

			///<summary>寄件城市</summary>
			public static readonly Field ShipperCity = FindByName(__.ShipperCity);

			///<summary>寄件邮编</summary>
			public static readonly Field ShipperPostCode = FindByName(__.ShipperPostCode);

			///<summary>寄件联系人</summary>
			public static readonly Field ShipperContact = FindByName(__.ShipperContact);

			///<summary>寄件联系人电话</summary>
			public static readonly Field ShipperTel = FindByName(__.ShipperTel);

			///<summary>寄件国家代码</summary>
			public static readonly Field ShipperCountryCode = FindByName(__.ShipperCountryCode);

			///<summary>寄件国家</summary>
			public static readonly Field ShipperCountry = FindByName(__.ShipperCountry);

			///<summary>收件代码</summary>
			public static readonly Field ConsigneeCode = FindByName(__.ConsigneeCode);

			///<summary>收件公司</summary>
			public static readonly Field ConsigneeName = FindByName(__.ConsigneeName);

			///<summary>收件地址</summary>
			public static readonly Field ConsigneeAddress = FindByName(__.ConsigneeAddress);

			///<summary>收件城市</summary>
			public static readonly Field ConsigneeCity = FindByName(__.ConsigneeCity);

			///<summary>收件邮编</summary>
			public static readonly Field ConsigneePostCode = FindByName(__.ConsigneePostCode);

			///<summary>收件联系人</summary>
			public static readonly Field ConsigneeContact = FindByName(__.ConsigneeContact);

			///<summary>收件联系人电话</summary>
			public static readonly Field ConsigneeTel = FindByName(__.ConsigneeTel);

			///<summary>收件国家代码</summary>
			public static readonly Field ConsigneeCountryCode = FindByName(__.ConsigneeCountryCode);

			///<summary>收件国家</summary>
			public static readonly Field ConsigneeCountry = FindByName(__.ConsigneeCountry);

			///<summary>运输方式</summary>
			public static readonly Field ShipmentType = FindByName(__.ShipmentType);

			///<summary>收件日期</summary>
			public static readonly Field ExpressDate = FindByName(__.ExpressDate);

			///<summary>英文描述</summary>
			public static readonly Field Description = FindByName(__.Description);

			///<summary>中文描述</summary>
			public static readonly Field DescriptionCN = FindByName(__.DescriptionCN);

			///<summary>货物件数</summary>
			public static readonly Field AmountOfPieces = FindByName(__.AmountOfPieces);

			///<summary>实际重量</summary>
			public static readonly Field ActualWeight = FindByName(__.ActualWeight);

			///<summary>货物尺寸</summary>
			public static readonly Field Dimenstion = FindByName(__.Dimenstion);

			///<summary>体积材重</summary>
			public static readonly Field ChargeableWeight = FindByName(__.ChargeableWeight);

			///<summary>是否体积重量</summary>
			public static readonly Field IsChargeableWeight = FindByName(__.IsChargeableWeight);

			///<summary>货币代码</summary>
			public static readonly Field CurrencyCode = FindByName(__.CurrencyCode);

			///<summary>申报价值</summary>
			public static readonly Field DeclaredValue = FindByName(__.DeclaredValue);

			///<summary>支付方式</summary>
			public static readonly Field PayType = FindByName(__.PayType);

			///<summary>到付金额</summary>
			public static readonly Field CollectAmount = FindByName(__.CollectAmount);

			///<summary>是否保险</summary>
			public static readonly Field IsInsurance = FindByName(__.IsInsurance);

			///<summary>保险备注</summary>
			public static readonly Field InsuranceRemark = FindByName(__.InsuranceRemark);

			///<summary>保价</summary>
			public static readonly Field InsurancePrice = FindByName(__.InsurancePrice);

			///<summary>重量差异件</summary>
			public static readonly Field IsDifferenceWeight = FindByName(__.IsDifferenceWeight);

			///<summary>OCS结算实重</summary>
			public static readonly Field SettleWeight = FindByName(__.SettleWeight);

			///<summary>OCS结算尺寸</summary>
			public static readonly Field SettleDimenstion = FindByName(__.SettleDimenstion);

			///<summary>OCS结算除数</summary>
			public static readonly Field SettleFactor = FindByName(__.SettleFactor);

			///<summary>OCS结算材重</summary>
			public static readonly Field SettleVolWeight = FindByName(__.SettleVolWeight);

			///<summary>应对客户实重</summary>
			public static readonly Field ReceWeight = FindByName(__.ReceWeight);

			///<summary>应对客户尺寸</summary>
			public static readonly Field ReceDimenstion = FindByName(__.ReceDimenstion);

			///<summary>应对客户除数</summary>
			public static readonly Field ReceFactor = FindByName(__.ReceFactor);

			///<summary>应对客户材重</summary>
			public static readonly Field ReceVolWeight = FindByName(__.ReceVolWeight);

			///<summary>部门上交实重</summary>
			public static readonly Field ProfitWeight = FindByName(__.ProfitWeight);

			///<summary>部门上交尺寸</summary>
			public static readonly Field ProfitDimenstion = FindByName(__.ProfitDimenstion);

			///<summary>部门上交除数</summary>
			public static readonly Field ProfitFactor = FindByName(__.ProfitFactor);

			///<summary>部门上交材重</summary>
			public static readonly Field ProfitVolWeight = FindByName(__.ProfitVolWeight);

			///<summary>后补单</summary>
			public static readonly Field IsDelay = FindByName(__.IsDelay);

			///<summary>业务备注</summary>
			public static readonly Field BusinessDescription = FindByName(__.BusinessDescription);

			///<summary>部门预报单</summary>
			public static readonly Field IsForecast = FindByName(__.IsForecast);

			///<summary>逻辑删除</summary>
			public static readonly Field IsDelete = FindByName(__.IsDelete);

			///<summary>修改时间</summary>
			public static readonly Field ModifiedOn = FindByName(__.ModifiedOn);

			///<summary>修改用户ID</summary>
			public static readonly Field ModifiedUserID = FindByName(__.ModifiedUserID);

			///<summary>修改用户</summary>
			public static readonly Field ModifiedBy = FindByName(__.ModifiedBy);

			///<summary>创建时间</summary>
			public static readonly Field CreateOn = FindByName(__.CreateOn);

			///<summary>创建用户ID</summary>
			public static readonly Field CreateUserID = FindByName(__.CreateUserID);

			///<summary>创建用户</summary>
			public static readonly Field CreateBy = FindByName(__.CreateBy);

			private static Field FindByName(String name)
			{
				return Meta.Table.FindByName(name);
			}
		}

		/// <summary>取得OCS运单数据字段名称的快捷方式</summary>
		public partial class __
		{
			///<summary>主键</summary>
			public const String ID = "ID";

			///<summary>运单号</summary>
			public const String CWBNo = "CWBNo";

			///<summary>所属部门</summary>
			public const String OrganizeID = "OrganizeID";

			///<summary>所属客户</summary>
			public const String CustomerID = "CustomerID";

			///<summary>是否国内快件</summary>
			public const String IsDomestic = "IsDomestic";

			///<summary>快递方式</summary>
			public const String ExpressType = "ExpressType";

			///<summary>快递类型</summary>
			public const String ExpressService = "ExpressService";

			///<summary>区域代码</summary>
			public const String AreaCode = "AreaCode";

			///<summary>转运代码</summary>
			public const String OriginCode = "OriginCode";

			///<summary>目的地代码</summary>
			public const String DestinationCode = "DestinationCode";

			///<summary>业务类型</summary>
			public const String BusinessType = "BusinessType";

			///<summary>寄件代码</summary>
			public const String ShipperCode = "ShipperCode";

			///<summary>寄件公司</summary>
			public const String ShipperName = "ShipperName";

			///<summary>寄件地址</summary>
			public const String ShipperAddress = "ShipperAddress";

			///<summary>寄件城市</summary>
			public const String ShipperCity = "ShipperCity";

			///<summary>寄件邮编</summary>
			public const String ShipperPostCode = "ShipperPostCode";

			///<summary>寄件联系人</summary>
			public const String ShipperContact = "ShipperContact";

			///<summary>寄件联系人电话</summary>
			public const String ShipperTel = "ShipperTel";

			///<summary>寄件国家代码</summary>
			public const String ShipperCountryCode = "ShipperCountryCode";

			///<summary>寄件国家</summary>
			public const String ShipperCountry = "ShipperCountry";

			///<summary>收件代码</summary>
			public const String ConsigneeCode = "ConsigneeCode";

			///<summary>收件公司</summary>
			public const String ConsigneeName = "ConsigneeName";

			///<summary>收件地址</summary>
			public const String ConsigneeAddress = "ConsigneeAddress";

			///<summary>收件城市</summary>
			public const String ConsigneeCity = "ConsigneeCity";

			///<summary>收件邮编</summary>
			public const String ConsigneePostCode = "ConsigneePostCode";

			///<summary>收件联系人</summary>
			public const String ConsigneeContact = "ConsigneeContact";

			///<summary>收件联系人电话</summary>
			public const String ConsigneeTel = "ConsigneeTel";

			///<summary>收件国家代码</summary>
			public const String ConsigneeCountryCode = "ConsigneeCountryCode";

			///<summary>收件国家</summary>
			public const String ConsigneeCountry = "ConsigneeCountry";

			///<summary>运输方式</summary>
			public const String ShipmentType = "ShipmentType";

			///<summary>收件日期</summary>
			public const String ExpressDate = "ExpressDate";

			///<summary>英文描述</summary>
			public const String Description = "Description";

			///<summary>中文描述</summary>
			public const String DescriptionCN = "DescriptionCN";

			///<summary>货物件数</summary>
			public const String AmountOfPieces = "AmountOfPieces";

			///<summary>实际重量</summary>
			public const String ActualWeight = "ActualWeight";

			///<summary>货物尺寸</summary>
			public const String Dimenstion = "Dimenstion";

			///<summary>体积材重</summary>
			public const String ChargeableWeight = "ChargeableWeight";

			///<summary>是否体积重量</summary>
			public const String IsChargeableWeight = "IsChargeableWeight";

			///<summary>货币代码</summary>
			public const String CurrencyCode = "CurrencyCode";

			///<summary>申报价值</summary>
			public const String DeclaredValue = "DeclaredValue";

			///<summary>支付方式</summary>
			public const String PayType = "PayType";

			///<summary>到付金额</summary>
			public const String CollectAmount = "CollectAmount";

			///<summary>是否保险</summary>
			public const String IsInsurance = "IsInsurance";

			///<summary>保险备注</summary>
			public const String InsuranceRemark = "InsuranceRemark";

			///<summary>保价</summary>
			public const String InsurancePrice = "InsurancePrice";

			///<summary>重量差异件</summary>
			public const String IsDifferenceWeight = "IsDifferenceWeight";

			///<summary>OCS结算实重</summary>
			public const String SettleWeight = "SettleWeight";

			///<summary>OCS结算尺寸</summary>
			public const String SettleDimenstion = "SettleDimenstion";

			///<summary>OCS结算除数</summary>
			public const String SettleFactor = "SettleFactor";

			///<summary>OCS结算材重</summary>
			public const String SettleVolWeight = "SettleVolWeight";

			///<summary>应对客户实重</summary>
			public const String ReceWeight = "ReceWeight";

			///<summary>应对客户尺寸</summary>
			public const String ReceDimenstion = "ReceDimenstion";

			///<summary>应对客户除数</summary>
			public const String ReceFactor = "ReceFactor";

			///<summary>应对客户材重</summary>
			public const String ReceVolWeight = "ReceVolWeight";

			///<summary>部门上交实重</summary>
			public const String ProfitWeight = "ProfitWeight";

			///<summary>部门上交尺寸</summary>
			public const String ProfitDimenstion = "ProfitDimenstion";

			///<summary>部门上交除数</summary>
			public const String ProfitFactor = "ProfitFactor";

			///<summary>部门上交材重</summary>
			public const String ProfitVolWeight = "ProfitVolWeight";

			///<summary>后补单</summary>
			public const String IsDelay = "IsDelay";

			///<summary>业务备注</summary>
			public const String BusinessDescription = "BusinessDescription";

			///<summary>部门预报单</summary>
			public const String IsForecast = "IsForecast";

			///<summary>逻辑删除</summary>
			public const String IsDelete = "IsDelete";

			///<summary>修改时间</summary>
			public const String ModifiedOn = "ModifiedOn";

			///<summary>修改用户ID</summary>
			public const String ModifiedUserID = "ModifiedUserID";

			///<summary>修改用户</summary>
			public const String ModifiedBy = "ModifiedBy";

			///<summary>创建时间</summary>
			public const String CreateOn = "CreateOn";

			///<summary>创建用户ID</summary>
			public const String CreateUserID = "CreateUserID";

			///<summary>创建用户</summary>
			public const String CreateBy = "CreateBy";
		}

		#endregion
	}

	/// <summary>OCS运单数据接口</summary>
	public partial interface IExpress
	{
		#region 属性

		/// <summary>主键</summary>
		Int32 ID { get; set; }

		/// <summary>运单号</summary>
		String CWBNo { get; set; }

		/// <summary>所属部门</summary>
		Int32 OrganizeID { get; set; }

		/// <summary>所属客户</summary>
		Int32 CustomerID { get; set; }

		/// <summary>是否国内快件</summary>
		Boolean IsDomestic { get; set; }

		/// <summary>快递方式</summary>
		String ExpressType { get; set; }

		/// <summary>快递类型</summary>
		String ExpressService { get; set; }

		/// <summary>区域代码</summary>
		String AreaCode { get; set; }

		/// <summary>转运代码</summary>
		String OriginCode { get; set; }

		/// <summary>目的地代码</summary>
		String DestinationCode { get; set; }

		/// <summary>业务类型</summary>
		Int32 BusinessType { get; set; }

		/// <summary>寄件代码</summary>
		String ShipperCode { get; set; }

		/// <summary>寄件公司</summary>
		String ShipperName { get; set; }

		/// <summary>寄件地址</summary>
		String ShipperAddress { get; set; }

		/// <summary>寄件城市</summary>
		String ShipperCity { get; set; }

		/// <summary>寄件邮编</summary>
		String ShipperPostCode { get; set; }

		/// <summary>寄件联系人</summary>
		String ShipperContact { get; set; }

		/// <summary>寄件联系人电话</summary>
		String ShipperTel { get; set; }

		/// <summary>寄件国家代码</summary>
		String ShipperCountryCode { get; set; }

		/// <summary>寄件国家</summary>
		String ShipperCountry { get; set; }

		/// <summary>收件代码</summary>
		String ConsigneeCode { get; set; }

		/// <summary>收件公司</summary>
		String ConsigneeName { get; set; }

		/// <summary>收件地址</summary>
		String ConsigneeAddress { get; set; }

		/// <summary>收件城市</summary>
		String ConsigneeCity { get; set; }

		/// <summary>收件邮编</summary>
		String ConsigneePostCode { get; set; }

		/// <summary>收件联系人</summary>
		String ConsigneeContact { get; set; }

		/// <summary>收件联系人电话</summary>
		String ConsigneeTel { get; set; }

		/// <summary>收件国家代码</summary>
		String ConsigneeCountryCode { get; set; }

		/// <summary>收件国家</summary>
		String ConsigneeCountry { get; set; }

		/// <summary>运输方式</summary>
		String ShipmentType { get; set; }

		/// <summary>收件日期</summary>
		DateTime ExpressDate { get; set; }

		/// <summary>英文描述</summary>
		String Description { get; set; }

		/// <summary>中文描述</summary>
		String DescriptionCN { get; set; }

		/// <summary>货物件数</summary>
		Int32 AmountOfPieces { get; set; }

		/// <summary>实际重量</summary>
		Decimal ActualWeight { get; set; }

		/// <summary>货物尺寸</summary>
		String Dimenstion { get; set; }

		/// <summary>体积材重</summary>
		Decimal ChargeableWeight { get; set; }

		/// <summary>是否体积重量</summary>
		Boolean IsChargeableWeight { get; set; }

		/// <summary>货币代码</summary>
		String CurrencyCode { get; set; }

		/// <summary>申报价值</summary>
		Decimal DeclaredValue { get; set; }

		/// <summary>支付方式</summary>
		String PayType { get; set; }

		/// <summary>到付金额</summary>
		Decimal CollectAmount { get; set; }

		/// <summary>是否保险</summary>
		Boolean IsInsurance { get; set; }

		/// <summary>保险备注</summary>
		String InsuranceRemark { get; set; }

		/// <summary>保价</summary>
		Decimal InsurancePrice { get; set; }

		/// <summary>重量差异件</summary>
		Boolean IsDifferenceWeight { get; set; }

		/// <summary>OCS结算实重</summary>
		Decimal SettleWeight { get; set; }

		/// <summary>OCS结算尺寸</summary>
		String SettleDimenstion { get; set; }

		/// <summary>OCS结算除数</summary>
		Int32 SettleFactor { get; set; }

		/// <summary>OCS结算材重</summary>
		Decimal SettleVolWeight { get; set; }

		/// <summary>应对客户实重</summary>
		Decimal ReceWeight { get; set; }

		/// <summary>应对客户尺寸</summary>
		String ReceDimenstion { get; set; }

		/// <summary>应对客户除数</summary>
		Int32 ReceFactor { get; set; }

		/// <summary>应对客户材重</summary>
		Decimal ReceVolWeight { get; set; }

		/// <summary>部门上交实重</summary>
		Decimal ProfitWeight { get; set; }

		/// <summary>部门上交尺寸</summary>
		String ProfitDimenstion { get; set; }

		/// <summary>部门上交除数</summary>
		Int32 ProfitFactor { get; set; }

		/// <summary>部门上交材重</summary>
		Decimal ProfitVolWeight { get; set; }

		/// <summary>后补单</summary>
		Boolean IsDelay { get; set; }

		/// <summary>业务备注</summary>
		String BusinessDescription { get; set; }

		/// <summary>部门预报单</summary>
		Boolean IsForecast { get; set; }

		/// <summary>逻辑删除</summary>
		Boolean IsDelete { get; set; }

		/// <summary>修改时间</summary>
		DateTime ModifiedOn { get; set; }

		/// <summary>修改用户ID</summary>
		Int32 ModifiedUserID { get; set; }

		/// <summary>修改用户</summary>
		String ModifiedBy { get; set; }

		/// <summary>创建时间</summary>
		DateTime CreateOn { get; set; }

		/// <summary>创建用户ID</summary>
		Int32 CreateUserID { get; set; }

		/// <summary>创建用户</summary>
		String CreateBy { get; set; }

		#endregion

		#region 获取/设置 字段值

		/// <summary>获取/设置 字段值。</summary>
		/// <param name="name">字段名</param>
		/// <returns></returns>
		Object this[String name] { get; set; }

		#endregion
	}
}